UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

The Security Token Service must not show directory listings.


Overview

Finding ID Version Rule ID IA Controls Severity
V-256767 VCST-70-000023 SV-256767r889271_rule Medium
Description
Enumeration techniques, such as Uniform Resource Locator (URL) parameter manipulation, rely on being able to obtain information about the web server's directory structure by locating directories without default pages. In this scenario, the web server will display to the user a listing of the files in the directory being accessed. Ensuring directory listing is disabled is one approach to mitigating the vulnerability.
STIG Date
VMware vSphere 7.0 vCenter Appliance STS Security Technical Implementation Guide 2023-06-15

Details

Check Text ( C-60442r889269_chk )
At the command prompt, run the following command:

# xmllint --format /usr/lib/vmware-sso/vmware-sts/conf/web.xml | sed '2 s/xmlns=".*"//g' | xmllint --xpath '//param-name[text()="listings"]/parent::init-param' -

Expected result:


listings
false


If the output of the command does not match the expected result, this is a finding.
Fix Text (F-60385r889270_fix)
Navigate to and open:

/usr/lib/vmware-sso/vmware-sts/conf/web.xml

Set the to "false" in all listing nodes.

Note: The setting should look like the following:


listings
false


Restart the service with the following command:

# vmon-cli --restart sts